@extends('mobile')
@section('style')
    <style>
        .button {
            text-align: center;
            background: #093;
            color: #fff;
            font-size: 1.5em;
            width: 50%;
            float: left;
        }
        .button :active{
            background: #f5f5f5!important;
        }
        .disable{
            background: #f5f5f5!important;
        }
        .button a {
            display: block;
            padding: 20px;
            color: #fff;;
        }
        .disable a {
            color: #666;;
        }
    </style>
@stop
@section('content')
    <div class="wap_box">
        <div class="lgywm_title">
            <div class="xian"></div>
            <div class="lwenzi">
                <p><strong>招贤纳士</strong></p>
            </div>
        </div>

        <dl class="about_con">
            @foreach($list as $item)
                <dd class="contact_tit">{{$item->name}}</dd>
                <?php $datas = json_decode($item->content, true) ?>
                @foreach($items['data'] as $key=>$nav)
                    <dd>{{$nav['name']}}
                        :{{isset($datas[$key]) && "" != $datas[$key] ? $datas[$key] : $nav['defalt']}}</dd>
                @endforeach

                <dd>职位描述：</dd>
                <dd>
                    <article>
                        {!! $datas['content'] !!}
                    </article>
                </dd>
            @endforeach
        </dl>
        @if("" !=$list->previousPageUrl())
            <p class="button"><a href="{{$list->previousPageUrl()}}">上一个</a></p>
        @else
            <p class="button disable"><a>上一个</a></p>
        @endif
        @if("" !=$list->nextPageUrl())
            <p class="button"><a href="{{$list->nextPageUrl()}}">下一个</a></p>
        @else
            <p class="button disable"><a>下一个</a></p>
        @endif
    </div>
@stop